Skip to content

Improve WSL & Windows compatibility for SSH tunnels and editors#210

Closed
oliverholworthy wants to merge 11 commits intoNVIDIA-NeMo:mainfrom
oliverholworthy:oholworthy/wsl-dev
Closed

Improve WSL & Windows compatibility for SSH tunnels and editors#210
oliverholworthy wants to merge 11 commits intoNVIDIA-NeMo:mainfrom
oliverholworthy:oholworthy/wsl-dev

Conversation

@oliverholworthy
Copy link

This PR enhances compatibility with Windows and Windows Subsystem for Linux (WSL) environments by addressing several issues:

SSH Tunneling Improvements

  • Fix SSH tunnel configuration in WSL environments by properly managing both Windows and WSL SSH config files
  • Update SSH tunnel naming to use a simpler format (removing devspace name duplication)
  • Use proper path formatting with as_posix() in tunnel server code

Editor Support Enhancements

  • Add robust editor detection that works correctly in Windows, Linux, and WSL environments
  • Properly handle Windows executables from WSL for VS Code and Cursor editors
  • Add detailed error messages to guide users through editor setup issues
  • Ensure environment variables are set correctly for each platform

Testing & Dependencies

  • Add tests for the editor detection functionality
  • Add WSL-specific tests for the SSH config handling

This allows users on any platform to seamlessly use SSH tunnels and launch editors, particularly improving the experience for those using WSL.

Signed-off-by: Oliver Holworthy <oholworthy@nvidia.com>
Signed-off-by: Oliver Holworthy <oholworthy@nvidia.com>
Signed-off-by: Oliver Holworthy <oholworthy@nvidia.com>
Signed-off-by: Oliver Holworthy <oholworthy@nvidia.com>
Signed-off-by: Oliver Holworthy <oholworthy@nvidia.com>
@@ -0,0 +1,163 @@
import os
import platform
import subprocess

Check notice

Code scanning / CodeQL

Unused import Note test

Import of 'subprocess' is not used.
import pytest
from pathlib import Path
import shutil
from unittest.mock import patch, MagicMock

Check notice

Code scanning / CodeQL

Unused import Note test

Import of 'patch' is not used.
Signed-off-by: Oliver Holworthy <oholworthy@nvidia.com>
Signed-off-by: Oliver Holworthy <oholworthy@nvidia.com>
Signed-off-by: Oliver Holworthy <oholworthy@nvidia.com>
Signed-off-by: Oliver Holworthy <oholworthy@nvidia.com>
Signed-off-by: Oliver Holworthy <oholworthy@nvidia.com>
@github-actions
Copy link
Contributor

This PR is stale because it has been open for 14 days with no activity. Remove stale label or comment or update or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label Jul 24, 2025
@github-actions
Copy link
Contributor

This PR was closed because it has been inactive for 7 days since being marked as stale.

@github-actions github-actions bot closed this Jul 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant